package com.ming.easyDevelop.entity.po;

import java.io.Serializable;
import java.util.Date;
import com.ming.easyDevelop.utils.DateUtils;
import com.ming.easyDevelop.entity.baseEnum.DateTimePatternEnum;
import java.math.BigDecimal;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * @Description 
 * @Author ming
 * @Date 2024/07/10
 */
public class Orders implements Serializable {


	public Orders(){
	}	public Orders(Integer orderID, Integer userID, Date orderDate, BigDecimal totalPrice, Integer shippingAddressID, Integer billingAddressID){
		this.orderID = orderID;
		this.userID = userID;
		this.orderDate = orderDate;
		this.totalPrice = totalPrice;
		this.shippingAddressID = shippingAddressID;
		this.billingAddressID = billingAddressID;
	}	/**
	 * 
	 */
	private Integer orderID;

	/**
	 * 
	 */
	private Integer userID;

	/**
	 * 
	 */
	@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date orderDate;

	/**
	 * 
	 */
	private BigDecimal totalPrice;

	/**
	 * 
	 */
	private Integer shippingAddressID;

	/**
	 * 
	 */
	private Integer billingAddressID;

	public void setOrderID(Integer orderID){
		this.orderID = orderID;
	}

	public Integer getOrderID(){
		return this.orderID;
	}

	public void setUserID(Integer userID){
		this.userID = userID;
	}

	public Integer getUserID(){
		return this.userID;
	}

	public void setOrderDate(Date orderDate){
		this.orderDate = orderDate;
	}

	public Date getOrderDate(){
		return this.orderDate;
	}

	public void setTotalPrice(BigDecimal totalPrice){
		this.totalPrice = totalPrice;
	}

	public BigDecimal getTotalPrice(){
		return this.totalPrice;
	}

	public void setShippingAddressID(Integer shippingAddressID){
		this.shippingAddressID = shippingAddressID;
	}

	public Integer getShippingAddressID(){
		return this.shippingAddressID;
	}

	public void setBillingAddressID(Integer billingAddressID){
		this.billingAddressID = billingAddressID;
	}

	public Integer getBillingAddressID(){
		return this.billingAddressID;
	}

	@Override
	public String toString(){
		return "Orders = {" + 
				"orderID() = " + this.orderID + 
				",userID() = " + this.userID + 
				",orderDate() = " + DateUtils.format(this.orderDate,DateTimePatternEnum.YYYY_MM_DD_HH_MM_SS.getPattern()) + 
				",totalPrice() = " + this.totalPrice + 
				",shippingAddressID() = " + this.shippingAddressID + 
				",billingAddressID() = " + this.billingAddressID + 
			"}";
	}
}